package com.lottery.material.entity.message;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：消息通知记录表
 * Created by 朱正磊 on 2019-04-09 10:26
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_message_notice_record")
public class MessageNoticeRecord extends BaseEntity {

    private static final long serialVersionUID = 4039935048627656827L;

    @Column(columnDefinition = "varchar(10) comment '消息类型编号'")
    private String messageTypeCode;

    @Column(columnDefinition = "varchar(100) comment '消息标题'")
    private String messageTitle;

    @Column(columnDefinition = "longtext comment '消息内容'")
    private String messageContent;

    @Column(columnDefinition = "varchar(100) comment '消息详情url'")
    private String messageUrl;

    @Column(columnDefinition = "int(1) comment '消息状态（1：未读；2：已读）'")
    private Integer messageState;

    @Column(columnDefinition = "varchar(50) comment '用户id'")
    private String userId;

}
